#!/bin/bash

if [ -z $1 ];then		# 使用方法- bash git.sh 测试提交
    str="优化bug"
else
    str="$1"
fi

git add -A
git commit -m "$str"	# 赋值不用$符号，输出里要用$
git push https://gitee.com/lizt816/uni-nvue-mark.git master